#ifndef MYAPPLICATION_H
#define MYAPPLICATION_H

#include <QApplication>

#include "Managers/DataManager.h"

#if defined(qApp)
#undef qApp
#endif
#define qApp (static_cast<MyApplication *>(QCoreApplication::instance()))

class MyApplication : public QApplication {
    Q_OBJECT
public:
#ifdef Q_QDOC
    MyApplication(int &argc, char **argv);
#else
    MyApplication(int &argc, char **argv, int _internal = ApplicationFlags);
#endif
    ~MyApplication();

private:
    void initApp();
    void quitApp();

public:
    DataManager *dataManager() const;

protected:
    DataManager *m_dataManager;

signals:
};

#endif // MYAPPLICATION_H
